package com.atjinggu.jinggumail.order.service;

import com.atjinggu.jinggumail.common.to.mq.SeckillOrderTo;
import com.atjinggu.jinggumail.order.vo.*;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atjinggu.jinggumail.common.utils.PageUtils;
import com.atjinggu.jinggumail.order.entity.OrderEntity;

import java.util.Map;
import java.util.concurrent.ExecutionException;

/**
 * 订单
 *
 * @author jingming
 * @email jingming@gmail.com
 * @date 2020-12-13 11:39:32
 */
public interface OrderService extends IService<OrderEntity> {

    PageUtils queryPage(Map<String, Object> params);

    OrderConfirmVo orderConfirm() throws ExecutionException, InterruptedException;

    OrderSubmitRespVo orderSubmit(OrderSubmitVo vo);

    void closeOrder(OrderEntity entity);

    PayVo getOrderPay(String orderSn);

    PageUtils orderItemList(Integer pageNum);

    String handlePayResult(PayAsyncVo vo);

    void orderSeckill(SeckillOrderTo entity);

}

